/**
 * 练习2.for遍历字符传大小写转换
*/

#include <iostream>
#include <string.h>

int main(void)
{
  std::string str = "test string";
  for (char &c : str)
  {
    c = toupper(c);
  }
  std::cout << "转换后的字符串: " << str << std::endl;
  printf("----------end-----------\n");
  return 0;
}